home *** CD-ROM | disk | FTP | other *** search
/ MacHack 2000 / MacHack 2000.toast / pc / The Hacks / MacHacksBug / Python 1.5.2c1 / Mac / IDE scripts / Insert folder name… < prev    next >
Encoding:
Text File  |  2000-06-23  |  111 b   |  7 lines

  1. import macfs
  2.  
  3. fss, ok = macfs.GetDirectory()
  4. if ok:
  5.     import W
  6.     W.FrontWindowInsert('"%s"' % fss.as_pathname())
  7.